/*
  Copyright 2009 Smart Enterprise Solution Corp.
  Email: contact@ses.vn - Website: http://www.ses.vn
  KimNgan Project.
*/
using System;
using System.Data;
using System.Configuration;
using System.Collections;

using GomMinhLongDAL;
using GomMinhLongDO;
/// <summary>
/// Summary description for cmsCategoryBL
/// </summary>
namespace GomMinhLongBL 
{
    public class cmsCategoryBL 
    {
        #region Private Variables
        cmsCategoryDAL objcmsCategoryDAL;
        #endregion

        #region Public Constructors
        public cmsCategoryBL()
        {
            //
            // TODO: Add constructor logic here
            //
            objcmsCategoryDAL = new cmsCategoryDAL();
        }
        #endregion

        #region Public Methods
        public int Insert(cmsCategoryDO objcmsCategoryDO)
        {
            return objcmsCategoryDAL.Insert(objcmsCategoryDO);
        }

        public int Update(cmsCategoryDO objcmsCategoryDO)
        {
            return objcmsCategoryDAL.Update(objcmsCategoryDO);

        }

        public int Delete(cmsCategoryDO objcmsCategoryDO)
        {
            return objcmsCategoryDAL.Delete(objcmsCategoryDO);

        }

        public DataTable SelectByParentID(int id, int n)
        {
            return objcmsCategoryDAL.SelectByParentID(id, n);
        }
        public DataTable SelectByParentID2(int id, int n)
        {
            return objcmsCategoryDAL.SelectByParentID2(id, n);
        }

        public int DeleteAll()
        {
            return objcmsCategoryDAL.DeleteAll();
        }

        public cmsCategoryDO Select(cmsCategoryDO objcmsCategoryDO)
        {
            return objcmsCategoryDAL.Select(objcmsCategoryDO);
        }

        public ArrayList SelectAll1()
        {
            return objcmsCategoryDAL.SelectAll1();
        }

        public DataTable SelectAll()
        {
            return objcmsCategoryDAL.SelectAll();
        }
        public DataTable SelectMenu()
        {
            return objcmsCategoryDAL.SelectMenu();
        }
        public int ktraParent(int id)
        {
            return objcmsCategoryDAL.ktraParent(id);
        }
        public DataTable SelectMultiArtCat(int CatID)
        {
            return objcmsCategoryDAL.SelectMultiArtCat(CatID);

        }
        public DataTable SelectAllArticleOfChildrenCat(int CatID)
        {
            return objcmsCategoryDAL.SelectAllArticleOfChildrenCat(CatID);
        }

        #endregion


        public DataTable BuildMenu()
        {
            return objcmsCategoryDAL.BuildMenu();
        }

        public DataTable SelectByType(int TypeID)
        {
            return objcmsCategoryDAL.SelectByType(TypeID);
        }
        public DataTable SelectParent(int CategoryID)
        {
            return objcmsCategoryDAL.SelectParent(CategoryID);
        }
        public DataTable SelectParenAndChid(int CategoryID)
        {
            return objcmsCategoryDAL.SelectParenAndChid(CategoryID);
        }
        public DataTable SelectParentId(int ParenId)
        {
            return objcmsCategoryDAL.SelectParentId(ParenId);
        }
        public DataTable SelectOne(cmsCategoryDO objCat)
        {
            return objcmsCategoryDAL.SelectOne(objCat);
        }
    }

}
